/**
 * Created by liguangsong on 16/8/1.
 */

var ExtractTextPlugin = require("extract-text-webpack-plugin");


module.exports = {
    entry: './app/index.js',
    output: {
        path: '',
        filename: 'bundle.js'
    },



    module: {
        loaders: [
            {
                test: /\.css$/,
                loader: ExtractTextPlugin.extract("style-loader", "css-loader")
            },

            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel-loader?presets[]=es2015&presets[]=react'
            },

            {
                test: /\.jsx$/,
                loader: 'babel'
            }

        ]
    },

    plugins: [
        new ExtractTextPlugin("bundle.css")
    ],

    devServer: {
        historyApiFallback: true,
        hot: true,
        inline: true,
        progress: true
    }
};
